obj-m += buzzlock.o 


all: 
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules 

debug:
	make -C /lib/modules/$(shell uname -f)/build M=$(PWD) modules

clean: 
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean 

test:
	gcc testLowBlack.c -o lowBlack -fopenmp -lpthread -lrt
	gcc testHighBlack.c -o highBlack -fopenmp -lpthread -lrt

lib: 
	gcc -c -fPIC buzzlock.c  
	gcc -shared -W1,-soname,buzzlock.so.1 -o libbuzzlock.so.1.0.1 buzzlock.o